<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery3.5.0.min.js"></script>
    <script>
$(function(){
    console.log($(".modal2-select").val("你好") ) 
})
    </script>
</head>
<body>
   
    <select class="modal2-select">
        <option  disabled selected hidden>请选择角色</option> 
        <option >管理员</option>
        <option>学生</option>
        <option>教师</option>
      </select>
</body>
</html>